import { defineStore } from "pinia";

// 对外导出的名字，一般是 use仓库名称
export const useMain = defineStore("main", {
  state() {
    return {
      count: 998,
    };
  },
  actions: {
    add(payload) {
      this.count += payload;
    },
  },
});
